import { BasicColumn, FormSchema } from '/@/components/Table';

export const Permission = {
  ADD: 'config.group.add',
  EDIT: 'config.group.edit',
  DEL: 'config.group.del',
};

export const columns: BasicColumn[] = [
  {
    title: '分组名称',
    dataIndex: 'groupName',
  },
  {
    title: '分组编号',
    dataIndex: 'groupCode',
  },
];

export const formSchema: FormSchema[] = [
  {
    field: 'groupName',
    label: '分组名称',
    component: 'Input',
    rules: [
      { required: true, message: '请填写分组名称' },
      { max: 100, message: '分组名称最多100字' },
    ],
  },
  {
    field: 'groupCode',
    label: '分组编号',
    component: 'Input',
    rules: [
      { required: true, message: '请填写分组编号' },
      { max: 100, message: '分组编号最多100字' },
    ],
  },
];
